<template>
  <div id="app">
    <Header class="headerfix" :isshow='isshow' />
    <router-view/>
  </div>
</template>
<script>
import Header from './components/common/header/Header.vue'
export default {
  data(){
    return {
      isshow:true
  }
  },
  components:{
    Header
  },
  created(){
    	let w = document.documentElement.offsetWidth || document.body.offsetWidth;
         if(w < 750){
          this.isshow = true;
        }else{
          this.isshow=false
            }
  }
}
</script>

<style lang="less" scoped>
.app{
  position: relative;
     .headerfix{
        position: fixed;
        top: 0;
        left: 0;
        z-index:99999 !important
    }
}

</style>
